package com.dsy.tools.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author dsy
 * @since 2023-03-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TbFood implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 美食推荐id
     */
    @TableId(value = "food_id", type = IdType.AUTO)
    private Integer foodId;

    /**
     * 美食推荐标题
     */
    private String foodTittle;

    /**
     * 美食推荐文案
     */
    private String foodContent;

    /**
     * 文案作者作者
     */
    private Integer foodUser;

    /**
     * 发表时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime foodTime;
    /**
     * 发表信息实体
     */
    private TbTou tbTou;
}
